package com.car.domain;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

/**
 * 交易记录表(TPurchaseRecord)实体类
 *
 * @author makejava
 * @since 2024-05-15 16:57:14
 */
public class PurchaseRecord implements Serializable {
    private static final long serialVersionUID = 611990098868239215L;
    /**
     * 主键id
     */
    private Integer id;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 汽车id
     */
    private Integer carId;
    /**
     * 员工id
     */
    private Integer employeeId;
    /**
     * 交易时间
     */
    private LocalDateTime purchaseDatetime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getCarId() {
        return carId;
    }

    public void setCarId(Integer carId) {
        this.carId = carId;
    }

    public Integer getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Integer employeeId) {
        this.employeeId = employeeId;
    }

    public LocalDateTime getPurchaseDatetime() {
        return purchaseDatetime;
    }

    public void setPurchaseDatetime(LocalDateTime purchaseDatetime) {
        this.purchaseDatetime = purchaseDatetime;
    }

    @Override
    public String toString() {
        return "PurchaseRecord{" +
                "id=" + id +
                ", userId=" + userId +
                ", carId=" + carId +
                ", employeeId=" + employeeId +
                ", purchaseDatetime=" + purchaseDatetime +
                '}';
    }

    public void setPurchaseDatetime(Date date) {
    }
}

